#ifndef __MUSIC_H__
#define __MUSIC_H__

extern int current_volume;
extern int IS_PLAYING;
extern int current_song;
extern int music_mode;

extern const char * music_files[];
extern const char * music_names[];
extern const char * music_imgs[];
extern const char * music_small_imgs[];
extern const char * home_music_names[];
extern const char * home_music_singer[];

extern lv_obj_t * progress_bar;
extern lv_obj_t * music_time_label;
extern lv_obj_t * music_all_screen;
extern lv_timer_t * progress_timer;

void music_init(void);
void play_music_init(lv_obj_t * parent);

void change_music_picture();

void prev_event_cb(lv_event_t * e);
void play_pause_event_cb(lv_event_t * e);
void next_event_cb(lv_event_t * e);

void set_system_volume(int vol);
void progress_timer_cb(lv_timer_t * timer);
void update_time_label(void);

#endif